package net.edu_soft.ec.asset.pojo;

import java.util.ArrayList;
import java.util.List;

public class ProExtensionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProExtensionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProExtensionIdIsNull() {
            addCriterion("pro_extension_id is null");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdIsNotNull() {
            addCriterion("pro_extension_id is not null");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdEqualTo(Integer value) {
            addCriterion("pro_extension_id =", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdNotEqualTo(Integer value) {
            addCriterion("pro_extension_id <>", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdGreaterThan(Integer value) {
            addCriterion("pro_extension_id >", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pro_extension_id >=", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdLessThan(Integer value) {
            addCriterion("pro_extension_id <", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdLessThanOrEqualTo(Integer value) {
            addCriterion("pro_extension_id <=", value, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdIn(List<Integer> values) {
            addCriterion("pro_extension_id in", values, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdNotIn(List<Integer> values) {
            addCriterion("pro_extension_id not in", values, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdBetween(Integer value1, Integer value2) {
            addCriterion("pro_extension_id between", value1, value2, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProExtensionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pro_extension_id not between", value1, value2, "proExtensionId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andHitsIsNull() {
            addCriterion("hits is null");
            return (Criteria) this;
        }

        public Criteria andHitsIsNotNull() {
            addCriterion("hits is not null");
            return (Criteria) this;
        }

        public Criteria andHitsEqualTo(Long value) {
            addCriterion("hits =", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotEqualTo(Long value) {
            addCriterion("hits <>", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThan(Long value) {
            addCriterion("hits >", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThanOrEqualTo(Long value) {
            addCriterion("hits >=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThan(Long value) {
            addCriterion("hits <", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThanOrEqualTo(Long value) {
            addCriterion("hits <=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsIn(List<Long> values) {
            addCriterion("hits in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotIn(List<Long> values) {
            addCriterion("hits not in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsBetween(Long value1, Long value2) {
            addCriterion("hits between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotBetween(Long value1, Long value2) {
            addCriterion("hits not between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andPvIsNull() {
            addCriterion("pv is null");
            return (Criteria) this;
        }

        public Criteria andPvIsNotNull() {
            addCriterion("pv is not null");
            return (Criteria) this;
        }

        public Criteria andPvEqualTo(Long value) {
            addCriterion("pv =", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvNotEqualTo(Long value) {
            addCriterion("pv <>", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvGreaterThan(Long value) {
            addCriterion("pv >", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvGreaterThanOrEqualTo(Long value) {
            addCriterion("pv >=", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvLessThan(Long value) {
            addCriterion("pv <", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvLessThanOrEqualTo(Long value) {
            addCriterion("pv <=", value, "pv");
            return (Criteria) this;
        }

        public Criteria andPvIn(List<Long> values) {
            addCriterion("pv in", values, "pv");
            return (Criteria) this;
        }

        public Criteria andPvNotIn(List<Long> values) {
            addCriterion("pv not in", values, "pv");
            return (Criteria) this;
        }

        public Criteria andPvBetween(Long value1, Long value2) {
            addCriterion("pv between", value1, value2, "pv");
            return (Criteria) this;
        }

        public Criteria andPvNotBetween(Long value1, Long value2) {
            addCriterion("pv not between", value1, value2, "pv");
            return (Criteria) this;
        }

        public Criteria andHeatIsNull() {
            addCriterion("heat is null");
            return (Criteria) this;
        }

        public Criteria andHeatIsNotNull() {
            addCriterion("heat is not null");
            return (Criteria) this;
        }

        public Criteria andHeatEqualTo(Long value) {
            addCriterion("heat =", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatNotEqualTo(Long value) {
            addCriterion("heat <>", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatGreaterThan(Long value) {
            addCriterion("heat >", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatGreaterThanOrEqualTo(Long value) {
            addCriterion("heat >=", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatLessThan(Long value) {
            addCriterion("heat <", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatLessThanOrEqualTo(Long value) {
            addCriterion("heat <=", value, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatIn(List<Long> values) {
            addCriterion("heat in", values, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatNotIn(List<Long> values) {
            addCriterion("heat not in", values, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatBetween(Long value1, Long value2) {
            addCriterion("heat between", value1, value2, "heat");
            return (Criteria) this;
        }

        public Criteria andHeatNotBetween(Long value1, Long value2) {
            addCriterion("heat not between", value1, value2, "heat");
            return (Criteria) this;
        }

        public Criteria andFavourIsNull() {
            addCriterion("favour is null");
            return (Criteria) this;
        }

        public Criteria andFavourIsNotNull() {
            addCriterion("favour is not null");
            return (Criteria) this;
        }

        public Criteria andFavourEqualTo(Long value) {
            addCriterion("favour =", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourNotEqualTo(Long value) {
            addCriterion("favour <>", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourGreaterThan(Long value) {
            addCriterion("favour >", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourGreaterThanOrEqualTo(Long value) {
            addCriterion("favour >=", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourLessThan(Long value) {
            addCriterion("favour <", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourLessThanOrEqualTo(Long value) {
            addCriterion("favour <=", value, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourIn(List<Long> values) {
            addCriterion("favour in", values, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourNotIn(List<Long> values) {
            addCriterion("favour not in", values, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourBetween(Long value1, Long value2) {
            addCriterion("favour between", value1, value2, "favour");
            return (Criteria) this;
        }

        public Criteria andFavourNotBetween(Long value1, Long value2) {
            addCriterion("favour not between", value1, value2, "favour");
            return (Criteria) this;
        }

        public Criteria andPurchasesIsNull() {
            addCriterion("purchases is null");
            return (Criteria) this;
        }

        public Criteria andPurchasesIsNotNull() {
            addCriterion("purchases is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasesEqualTo(Long value) {
            addCriterion("purchases =", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesNotEqualTo(Long value) {
            addCriterion("purchases <>", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesGreaterThan(Long value) {
            addCriterion("purchases >", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesGreaterThanOrEqualTo(Long value) {
            addCriterion("purchases >=", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesLessThan(Long value) {
            addCriterion("purchases <", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesLessThanOrEqualTo(Long value) {
            addCriterion("purchases <=", value, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesIn(List<Long> values) {
            addCriterion("purchases in", values, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesNotIn(List<Long> values) {
            addCriterion("purchases not in", values, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesBetween(Long value1, Long value2) {
            addCriterion("purchases between", value1, value2, "purchases");
            return (Criteria) this;
        }

        public Criteria andPurchasesNotBetween(Long value1, Long value2) {
            addCriterion("purchases not between", value1, value2, "purchases");
            return (Criteria) this;
        }

        public Criteria andTestCountIsNull() {
            addCriterion("test_count is null");
            return (Criteria) this;
        }

        public Criteria andTestCountIsNotNull() {
            addCriterion("test_count is not null");
            return (Criteria) this;
        }

        public Criteria andTestCountEqualTo(Long value) {
            addCriterion("test_count =", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountNotEqualTo(Long value) {
            addCriterion("test_count <>", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountGreaterThan(Long value) {
            addCriterion("test_count >", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountGreaterThanOrEqualTo(Long value) {
            addCriterion("test_count >=", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountLessThan(Long value) {
            addCriterion("test_count <", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountLessThanOrEqualTo(Long value) {
            addCriterion("test_count <=", value, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountIn(List<Long> values) {
            addCriterion("test_count in", values, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountNotIn(List<Long> values) {
            addCriterion("test_count not in", values, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountBetween(Long value1, Long value2) {
            addCriterion("test_count between", value1, value2, "testCount");
            return (Criteria) this;
        }

        public Criteria andTestCountNotBetween(Long value1, Long value2) {
            addCriterion("test_count not between", value1, value2, "testCount");
            return (Criteria) this;
        }

        public Criteria andLabelIsNull() {
            addCriterion("label is null");
            return (Criteria) this;
        }

        public Criteria andLabelIsNotNull() {
            addCriterion("label is not null");
            return (Criteria) this;
        }

        public Criteria andLabelEqualTo(String value) {
            addCriterion("label =", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotEqualTo(String value) {
            addCriterion("label <>", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelGreaterThan(String value) {
            addCriterion("label >", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelGreaterThanOrEqualTo(String value) {
            addCriterion("label >=", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLessThan(String value) {
            addCriterion("label <", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLessThanOrEqualTo(String value) {
            addCriterion("label <=", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelLike(String value) {
            addCriterion("label like", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotLike(String value) {
            addCriterion("label not like", value, "label");
            return (Criteria) this;
        }

        public Criteria andLabelIn(List<String> values) {
            addCriterion("label in", values, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotIn(List<String> values) {
            addCriterion("label not in", values, "label");
            return (Criteria) this;
        }

        public Criteria andLabelBetween(String value1, String value2) {
            addCriterion("label between", value1, value2, "label");
            return (Criteria) this;
        }

        public Criteria andLabelNotBetween(String value1, String value2) {
            addCriterion("label not between", value1, value2, "label");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}